<?php

namespace app\api\v1\validate\user\user;

use think\Validate;

class ChangePasswordValidate extends Validate
{
    protected $rule = [
        'mobile'           => 'require|number|max:11',
        'sms_code'         => 'require|number|max:4',
        'password'         => 'require',
        'confirm_password' => 'require',
    ];

    protected $message = [
        'mobile.require' => '手机号必须',
        'mobile.number'  => '手机号必须是数字',
        'mobile.max'     => '手机号最多不能超过11个字符',
    ];
}